#ifndef H_MOUSEPILOT
#define H_MOUSEPILOT

#include <button.h>
#include <ragDoll.h>
using namespace msbButton;

class MousePilot: public  msbButton::Button{

public:

    int channel;
    int pilotedActor;
    Actor * controlledActor;
    RagDoll * r;
    PhysicsActor * closestString;

    Vector3f leftHandRelPos;
    Vector3f rightHandRelPos;
    Vector3f spineOffset;
    Vector3f hipOffset;

    MousePilot();
    virtual ~MousePilot();

    virtual void registerProperties();

    virtual void setup();

    virtual void trigger(Actor * other);

    virtual void update(double deltaTime);

    virtual Vector3f projectMouseOnAxis(Vector3f axis, Vector3f offset, Vector3f subOffset);
    virtual PhysicsActor * determineClosest(Vector3f pointInSpace);


    virtual void create();
};
#endif // MOUSEPILOT
